-
Notifications
You must be signed in to change notification settings - Fork 742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicorn: Revert limitation of JPY only ( add limitation of accountId ) #2277
Unicorn: Revert limitation of JPY only ( add limitation of accountId ) #2277
Conversation
@@ -191,8 +174,9 @@ func setSourceExt() json.RawMessage { | |||
func setExt(request *openrtb2.BidRequest) (json.RawMessage, error) { | |||
accountID, err := jsonparser.GetInt(request.Imp[0].Ext, "bidder", "accountId") | |||
if err != nil { | |||
accountID = 0 | |||
return nil, fmt.Errorf("accountId field is required") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add coverage for this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line was not able to pass, so investigated it.
I found bug that acccountId set zero in modifyImps when not have accountId.
So i fixed it, and added test case that not have accountId.
This line is passed now.
… and add test case of no accountId
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update, lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 'master' of https://github.com/wwwyyy/prebid-server: Read imp[].ext.tid, fix PBJS 7.3.0 compatibility (prebid#2283) New Adapter: Kargo (prebid#2268) VIS.X updated endpoint parameters (prebid#2282) New Adapter: InfyTV (prebid#2278) Support adapters to set seat for a bid (prebid#2266) VIS.X: add X-Forwarded-For header (prebid#2279) Unicorn: Revert limitation of JPY only ( add limitation of accountId ) (prebid#2277)
modifyImps
when not have accountId.#2265 (comment)